
import uvicorn
from fastapi import FastAPI
from service import *

app = FastAPI()

app.post(path="/contract-parse", summary="合同文档解析")(contract_parse_api)
app.post(path="/clause-parse", summary="合同条款解析")(clause_parse_api)
app.post(path="/knowledge-retrieve", summary="内容/知识检索召回")(knowledge_retrieve_api)
app.post(path="/focus-generate", summary="生成审查重点")(focus_generate_api)
app.post(path="/rule-generate", summary="生成审查规则")(rule_generate_api)
app.post(path="/smart-review", summary="合同智能审查")(smart_review_api)
app.post(path="/pary-indentify", summary="合同主体识别")(pary_indentify_api)
app.post(path="/guid-draft", summary="合同引导式起草")(guid_draft_api)
app.post(path="/qa-drafting", summary="合同对话式起草")(qa_draft_api)


if __name__ == "__main__":
    uvicorn.run(app="contract_app:app", host="0.0.0.0", port=6016, workers=4, reload=False)
